package com.xhf;

public class App {
    public static void main( String[] args )
    {
        try{
            System.out.println( "main start!" );

            App test = new App();
            int x1 = 1;
            int x2 = 2;
            while(true){
                System.out.println(Integer.toString(test.add(x1, x2)));
                Thread.sleep(2000);
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
            System.out.println("main end");
        }

    }

    private int add(int x1, int x2){
        return x1+x2;
    }
}
